The online racing simulator
Searching in All forums
(374 results)
Tim NL
S2 licensed
Quote from oldnavy :How i can insert a buton for example in botom of window in LFS in witch file and what i need to write? This button wont do anything just an a word writen in it like in Cone dogers server

Hi,
You can in the Connect messages part of the LFSLapper.lpr put the followthing.


#################################################
#Connect messages when a player joins the server#
#################################################
.
bla bla bla
.
Sub OnConnectClose()
closePrivButton("welc&pos&clos&ref");
openGlobalButton( "logo",20,0,20,4,4,-1,0,"^7Your Text" );
EndSub

Sub OnConnectCloseKick()
closePrivButton("welc&pos&clos&ref");
cmdLFS("/kick " . $Username );
EndSub

Tim NL
S2 licensed
LFSsetup.cfg config file.

// host name
/host=^1Drift test
// optional: password
//pass=password
// optional: admin password
/admin=test
// optional: InSim port
/insim=29999
// optional: local specified ip address
//ip=xxx.xxx.xxx.xxx
// a high number below 65536
/port=63392
// demo/s1/s2
/mode=s2
// no/yes/hidden
/usemaster=yes
// BL1/BL1R/BL2, SO1/SO1R/SO2, etc
/track=AS5R
// weather
/weather=1
// cars allowed - see README.txt
/cars=ALL
// max guests that can join host
/maxguests=8
// slots reserved for admins (0 to 8)
/adminslots=0


Quote :Originally Posted by zlato900
I want to ask how to get this things works .When i enter the game and write /insim he start butt cant count my DRIFT points ?.I want to make him count my drift points

Quote :
Originally Posted by Yisc[NL]
You have to remove /* and *\ in the drift section.
/* = start exclusion
*/ = end exclusion

Tim NL
S2 licensed
Quote from Yisc[NL] :No problem, I don't think your an idiot and I like to help people with this great program.
I think the biggest 'problem' is the difference between connect screen and game screen.
When a server is empty, you always stay in connect screen.
When some people are already driving, you go to spectate mode. (in which you see others driving)
You can only display such kind of button when someone connects to the server or you can choose to display a message/button on a regular basis with a scheduled action.
In a scheduled action you can't use private or global button so a text is the only option.
You could make it something like this:

It should be nice if we have a new player's variable something like $Spectateplayer.
Then can we make thing's like

IF( $Spectateplayer = true)
THEN
openPrivButton( "noobs",15,0,40,4,4,-1,32,"^3Welcome " . $Nickname . "^3 to " . $HostName
. "&^3Here at " . $LongTrackName . " (" . $ShortTrackName . ")"
. "&^3you have a choice of cars to drive, including " . $CurrRotateCar );
ELSE
closePrivButton("noobs");
ENDIF

Or a new EVENT

Event Spectateplayer()
EndEvent
Tim NL
S2 licensed
Hi,

Copy the next part in your config file LFSLapper.lpr and it works.
Latest version can you find here http://ks37764.kimsufi.com/mods/LFSLapper5.714.zip

Code is for version 5.714


##################
#Drifting options#
##################
# This is the filepath for a file containing the collected data.
# This file will be created if it doesnt exist yet.
# You must ensure read/write access to this path.
#-------------------------------------------------------------------
$DriftDatabase = "./DriftPB.txt";
# Actions to do on new personal best drift lap.
Event DriftPBAction()
cmdLFS( "/rcm " . $Nickname . "^3 made new PB: ^7" . $DriftScore . " ^3pts!" );
cmdLFS( "/rcm_all" );
EndEvent
Event DriftPBAction()
cmdLFS( "/msg " . $Nickname . "^3 made new PB: ^7" . $DriftScore . " ^3pts!" );
EndEvent
# Actions to do to when total lap drift score is higher or equal to MinimumDriftScore.
Event DriftLapAction()
cmdLFS("/msg " . $Nickname . " ^3drifted to ^7" . $DriftScore . " ^3pts" );
EndEvent
# Message to get on end of each drift.
# Possible variables to use:
Event OnDriftScore()
privMsg( "Score: ^7" . $DriftScore . " ^3" . $LastDriftScore );
EndEvent
$GoodDriftScore = 4000; # Value to be reached to execute action on good drift score
Event GoodDriftAction()
privMsg( $Nickname . " ^3made excellent drift: ^7" . $LastDriftScore ." ^3pts" );
EndEvent
$MinimumDriftScore = 10; # Minimum drift score required
# Actions to do at end of lap if MinimumDriftScore is not achieved.
/*
Event DriftTooLowAction()
privMsg( $Nickname . "^3 disqualified" );
cmdLFS( "/spec " . $Nickname };
EndEvent
*/
$MinimumDriftSpeed = 50; # Minimum speed in km/h to maintain. Driving below that speed will reset score
$MinimumDriftAngle = 15; # Minimum angel to maintain. When angle is below value, score is reset
$MaximumDriftAngle = 100; # Maximum angel to maintain. When angle is above value, score is reset


Tim NL
S2 licensed
Quote from zlato900 :I want to ask how to get this things works .When i enter the game and write /insim he start butt cant count my DRIFT points ?.I want to make him count my drift points

Hi,
If you have a old version of lapper remove the # at the begin of the lines in the drifting section or download a new one from http://www.lfsforum.net/showthread.php?t=25756 (page 1) and

Quote from Yisc[NL] :You have to remove /* and *\ in the drift section.
/* = start exclusion
*/ = end exclusion

Tim NL
S2 licensed
Quote from zlato900 :I want to ask how to get this things works .When i enter the game and write /insim he start butt cant count my DRIFT points ?.I want to make him count my drift points

Hi,
If you have a old version of lapper remove the # at the begin of the lines in the drifting section or download a new one from page 1 of this threat and

Quote from Yisc[NL] :You have to remove /* and *\ in the drift section.
/* = start exclusion
*/ = end exclusion

Last edited by Tim NL, .
Tim NL
S2 licensed
Thanks Victor, super works great [NLR] #2 #3 and #4 server's have it now
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from tlcook :Thanks. And what would I need to put in the $Auth1 =""; part?

I want to authorise certain usernames to use the GTRs and FWD cars, all other cars can be used by all guests. Just want GTRs and FWD cars restricting to use by authorised usernames only.

Thanks.

Hi tlcook,
You can use something like this.
Enable the GTR and the FWD in your Dedi server.
The people by $AuthAllowPlayer can drive GTR AND FWD and the rest can only drive FWD.


#######################
#Authorization Options ( license )#
#######################
#
$Auth1 = "FBM:BL1:1.16.00";

[COLOR=red]$AuthAllowPlayer = "@username1,username2,...,usernameN";[/COLOR]

$AuthMinPlayer = 0; # Minimum number of players on the server to auto enable authorization
# If number of players is below value, alle players are allowed
# If number of players is above value, only AuthAllowPlayer are allowed
Event OnAuthAllowed()
privMsg( $Nickname . "^3 allowed to drive GTR on this server" );
Endevent

Event OnAuthNotAllowed()
IF( $Car == "FXR")
THEN
cmdLFS("/spec " . $Username . );
privMsg( $Nickname . "^3 not allowed to drive " . $Car . " on this server");
ENDIF
IF( $Car == "XRR")
THEN
cmdLFS("/spec " . $Username . );
privMsg( $Nickname . "^3 not allowed to drive " . $Car . " on this server");
ENDIF
IF( $Car == "FZR")
THEN
cmdLFS("/spec " . $Username . );
privMsg( $Nickname . "^3 not allowed to drive " . $Car . " on this server");
ENDIF
privMsg( $Nickname . "^3 allowed to drive UFR/XFR on this server");
Endevent

# Local viariable that can be used
# $auth -> Authorization reached
Event OnAuthReached()
privMsg("^3You have got level" . $auth );
EndEvent

Tim NL
S2 licensed
If a server using LFS Lapper , you can press shift-i and hide the split info.
Tim NL
S2 licensed
Quote from kodyro :dam ,im using old lapper version 5.14 ... Did someone have a newest lapper with drift points ? Can you put it here please .

Thanks .

Try page 1 of this thread
Tim NL
S2 licensed
Clutch works fine here.. from 0 to 100% the complete range of the pedal
Maybe you find here something http://en.lfsmanual.net/wiki/Wheels#Logitech_G25
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from Yisc[NL] :Rotation starts at 00:00 hours, then every 8 hours.
The code should be this:


Register ScheduleAction( "0 0 0 * * *", SA_weather_1 );
Register ScheduleAction( "0 0 8 * * *", SA_weather_2 );
Register ScheduleAction( "0 0 16 * * *", SA_weather_3 );
Sub SA_weather_1()
cmdLFS("/weather 1");
EndSub

Sub SA_weather_2()
cmdLFS("/weather 2");
EndSub

Sub SA_weather_3()
cmdLFS("/weather 2");
EndSub


Hi,

You have to end the race first before you can change the weather


Sub SA_weather_3()
cmdLFS("/end");
cmdLFS("/weather 2");
EndSub

Maybe this works (i only test it without the scheduler)
Tim NL
S2 licensed
Hi,

Perhaps is you USB gateway faulty, too little tension.

http://www.lfsforum.net/showthread.php?t=33277

Or Dawesdust 12 is right you use US version of the wheel. lol
Tim NL
S2 licensed
Hi,

Is it posible to 2 different database's ( pb1.txt is FBM on BL1 and pb2.txt is FOX on BL1) put together in to one database?
When i copy the data from one database in the other. When i start lapper the data that i copy in disappear and the original database stays


PROBLEM SOLVED
Last edited by Tim NL, . Reason : Problem solved
Tim NL
S2 licensed
Quote from nesrulz :One more question...



How disable this?
Because...

Hi,

You can't disable it. It's something in lapper but after you start lapper type /vote = yes in the server.

It will be nice as we can choose in lapper vote = no or yes
Tim NL
S2 licensed
Quote from SunSonik :Help me please
What is this?

Can anyone help me please?

Hi SunSonik,

There is a syntax error in line #982 .
Show your script so we can look at it.
Or open your script in PsAD and check the line #982

Quote from Gai-Luron :

Open cfg/LFSLapper.lpr with UTF8 or ansi compliant ( PSPPAD -> http://www.pspad.com/fr/ ) editor, you can find Lapper.INI in doc folder and put it in pspad subfolder Syntax to have colorized lapper config file

Gai-Luron

Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from Sil3nc3r- :I have a question to the pitboard. Am i see it right: If someone chooses to see the pitboard, it overrides the other show ups of "good lap bla" from the lapper itself ? So anyone can choose whether he want to see the pitboard or the normal lapper show ups ?

And if someone chooses the pitboard, will it show up the good laps/splits from the other drivers in the host ? (for example Good 1st Split by player1, good lap by player 3 or amazing 2nd split by player 4 ) ?

It looks very cool, and i just have to get 500 servers to install the new lapper version on their servers...^^
Cheers
Sil

Hi Sil,

I changed the config file a bit.
With this part the good , great split times shows always normal (as without a pitboard).
I changed
Sub TRI_split1_1()
IF ($pitb == "3" )
THEN ....

or something else then 1 ( $pitb == "1" is pitboad on).
Tim NL
S2 licensed
Quote from Bladerunner :@Tim [NL]

er..."Houston we have a problem!"

Integrated your pitboard stuff into my *.lpr file, and tried it out...getting error messages in the console:

C:\webroot\LFS2\Lapper\bin>LFSLapper.exe C:\webroot\LFS2\Lapper\bin\dsrcTG-test.
lpr
LFSLapper Version=5.7.1.4 on GNU license
2005-2008 Janez Cufer and Robert BRACCAGNI ( Gai-Luron )
LFSLapper comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions. Read LICENSE for details.
Type LFSLapper -help to view usage
Started : 09/08/2008 06:17:42

Parse config file...Ok
Loading WR...Not Loaded
Loading swearwords...Ok
Mode Sync = True
Connecting
Connection OK
Product:S2 Version:0.5Z InSim Version:4
Sync Upload DB Thread Started...
Sync Download DB Thread Started...
Web Commands Thread Started...
Register Web Thread Started...
LFSLapper is running...
'openPrivButton' parameter #2 is wrong type at line #1183
'openPrivButton' parameter #2 is wrong type at line #1194
'openPrivButton' parameter #2 is wrong type at line #1194
'openPrivButton' parameter #2 is wrong type at line #1194


Hi Bladerunner,

You using a old version of the config file.
This one work's OK.
And use the new trackinfo file .
I had add amazing , great and good split times. lol
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from Bladerunner :Hi Tim,
I know you have been modifying the pitboard section of lapper so that the board can be placed in various places on the screen.
I just wanted to ask if you had managed to get it working, as I have had problems with my mods

Another thing I notice is that there is NO split4 for long tracks such as FE4 or KY3. This causes split 3 to overwrite itself..(Really should ask Gai-Luron if there isa var for that!)

Any ideas?
Cheers,
Bladey.

Hi Bladerunner,

Here are some parts of my config file.
The menu can open by !pitboard and the pitboard can be put on the left or right.
The menu can closed so that people with a mouse also can use the pitboard.

For SPLIT 4 ?? yes thats a good one , i didnt notice that. lol
Tim NL
S2 licensed
Quote from Andy King :1) Authorisation is a bit awkward, we really need a seperate text file allowed in Authorisation area thats works like $allow = "&./admin.txt" as we had about 10 Drivers turn up on server who wanted to Race but we couldn't allow them as it would have meant restarting Lapper each time. I could easily have had FTP client open and Event.txt file ready to edit, that would have been fantastic to be able to add drivers we wanted on the fly.

Hi Andy,
Just an idea i did not test it but i think it will work.
Just schedule the event ,set a password on the server so that no one without a password can login and
kick or spectate everyone who's not in your list.


Register ScheduleAction( "ss mm hh dd MM YYYY", SA_event );
Sub SA_event()
cmdLFS("/rcm RACE Event start NOW!");
cmdLFS("/rcm_all");
cmdLFS("/pass secret");
IF( $Username != "&./your_file" )
THEN
cmdLFS( "/kick " . $Username );
ENDIF
EndSub

After your race event just type /pass to remove the password.
Tim NL
S2 licensed
Quote from Yisc[NL] :Found it!
PlayerVar doesn't require declaration first.
So you can use it directly like this:


Event OnLapperStart()
PlayerVar $testvar = 0;
EndEvent


Cool it works . Pitboard can now be move from left to right and put on and off by player's
Thankss
Tim NL
S2 licensed
Quote from Yisc[NL] :You don't have to quote numbers, just use:


$pitb = 0;

Same goes for GlobalVars, only text needs quotes around it.

Hey Yisc,
That was quick but i tested it and get the same error.
I think there is a different in syntax??

Syntax error in cfg file: var $pitb need '=' at line #306 in function 'OnLapperS
tart' script aborted

Event OnLapperStart()
[COLOR=red]PlayerVar $pitb; (this is line #306 in PSPad) When i use GlobalVar $pitb; it works.[/COLOR]
$pitb = 0;
GlobalVar $origL ;
$origL = "50" ;
GlobalVar $origT ;
$origT = "40" ;
GlobalVar $PBorigL ;
$PBorigL = "1" ;
GlobalVar $PBorigT ;
$PBorigT = "70" ;
GlobalVar $PB2Left ;
$PB2Left = "0" ;
EndEvent

Tim NL
S2 licensed
Hi all,
@Gai :thanks for the new update .

I using ver. 5.714 and want to use the PlayerVar but i get the following error when i start lapper.

LFSLapper Version=5.7.1.4 on GNU license
2005-2008 Janez Cufer and Robert BRACCAGNI ( Gai-Luron )
LFSLapper comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions. Read LICENSE for details.
Type LFSLapper -help to view usage
Started : 7/28/2008 10:35:40 PM
Parse config file...Ok
Loading WR...Not Loaded
Loading swearwords...Ok
Mode Sync = False
Connecting
Connection OK
Product:S2 Version:0.5Z InSim Version:4
Web Commands Thread Started...
Register Web Thread Started...
LFSLapper is running...
[COLOR=red]Syntax error in cfg file: var $pitb need '=' at line #306 in function 'OnLapperStart' script aborted[/COLOR]


###################################
#Event triggered when lapper start#
###################################
Event OnLapperStart()
[COLOR=red]PlayerVar $pitb; #this is line #306[/COLOR]
$pitb = "0" ;
GlobalVar $origL ;
$origL = "50" ;
GlobalVar $origT ;
$origT = "40" ;
GlobalVar $PBorigL ;
$PBorigL = "1" ;
GlobalVar $PBorigT ;
$PBorigT = "70" ;
GlobalVar $PB2Left ;
$PB2Left = "0" ;
EndEvent

Event OnSplit1()
IF ($pitb == "1" )
THEN....
ELSE...
..

When i use GlobalVar incase of PlayerVar it work's but it should be a PlayerVar.

What is the syntax error??
Thanks in advance.
Tim NL
S2 licensed
Quote from Yisc[NL] :Sure that's okay. I made it and released it to the community
I made the same options as you did but for now this can't work.
GlobalVars (as the word says) are global and therefor used for every user.
Gai-Luron is working on PlayerVars which can be set for individual players.
So put you script in the freezer for a while (next to mine please ) and get it out as soon as Gai-Luron releases a version which include these PlayerVars.

Thanks Yisc,

We wil wait for the PlayerVars "LocalVar" in case of the GlobalVar lol
Tim NL
S2 licensed
Hi all,

I have a small problem.
I used the super good looking pitboard maked by grandmaster Yisc[NL] .

I was trying to make a posibility to show the pitboard to the left , rigth side or put the pitboard off and show the splittimes the normal way.

When im alone at the track it works super , but with more player's the following hapenend.

When someone put on the pitboard , everyone get a pitboard , when someone put to the right , the pitboard move by everyone to the right.
Is there a posibility to show a pitboard local for a user?

I've attached the relevant sections of Lapper for my pitboard with the option to put on/off , left/right.
type !pitboard to open pitboard options.

ps. Yisc[NL] i hope that it aloud to use your Pitboard. It realy looks good.
FGED GREDG RDFGDR GSFDG